package com.example.api.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create with Intellij idea
 * User:鲁智明
 * Date:2018/11/27
 * Time:21:21
 */
@RestController
public class ApolloController {

    @Value("${name:ming}")
    private String name;

    @RequestMapping("/getName")
    public String getName(){
        System.out.println("姓名:"+name);
          return name;
    }
}
